package junit.controller;

import name.jiaosha.air.company.controller.EmployeeController;
import name.jiaosha.air.company.domain.CarInfo;
import name.jiaosha.air.company.domain.Employee;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestEmployeeController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });

		EmployeeController lc = (EmployeeController) context
				.getBean("employeeController");

		//lc.getMyCarInfoList();
		
		Employee employee=new Employee();
		
		employee.setName("名字");
		employee.setIdcard("33252819919110001");
		employee.setNamePinyin("mingzhi");
		employee.setPhone("13777436308");
		employee.setSex("W");
		lc.create(employee);

	}

}
